import re


# 编译正则表达式对象
pattern = re.compile(r'[a-zA-Z]+', re.S | re.I) # 了解即可
print(pattern.search("avasdasdsad"))

